var API = require('API').survey.temp;

module.exports = ['$scope','$routeParams',
    function ($scope,$routeParams) {
        $scope.data={};
        var id=$routeParams.id;
        API.get(id,function(json){
            $scope.$apply(function(){
                $scope.data=json;
            })
        });
    }];